﻿using System.Collections.Generic;

namespace EntryExit
{
    public class BasePage : System.Web.UI.Page
    {
        public Employee CurrentEmployee
        {
            get
            {
                return (Employee)Session[SessionKeys.CURRENT_EMPLOYEE];
            }
            set
            {
                Session[SessionKeys.CURRENT_EMPLOYEE] = value;
            }
        }
        public string SelectedEmployeeLPN
        {
            get
            {
                return (string)Session[SessionKeys.SELECTED_EMP_LPN];
            }
            set
            {
                Session[SessionKeys.SELECTED_EMP_LPN] = value;
            }
        }
        public List<Employee> SelectedEmployees
        {
            get
            {
                return (List<Employee>)Session[SessionKeys.SELECTED_EMPLOYEES];
            }
            set
            {
                Session[SessionKeys.SELECTED_EMPLOYEES] = value;
            }
        }
        public bool IsAdmin
        {
            get
            {
                return (bool)Session[SessionKeys.IS_ADMIN];
            }
            set
            {
                Session[SessionKeys.IS_ADMIN] = value;
            }
        }
        public EmployeeManager EmployeeManagerContext
        {
            get
            {
                return (EmployeeManager)Session[SessionKeys.MANAGER_CONTEXT];
            }
            set
            {
                Session[SessionKeys.MANAGER_CONTEXT] = value;
            }
        }
    }
}